using System;
using FytSoa.Common.Utils;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using FytSoa.Domain.Car;
using SqlSugar;

namespace FytSoa.Application.Car;

/// <summary>
/// 游戏设置表
/// </summary>
public class CarsGameDto
{
    /// <summary>
    /// 唯一编号
    /// </summary>
    public long Id { get; set; }

    /// <summary>
    /// 游戏名称
    /// </summary>
    [Required]
    [StringLength(50)]
    public string Name { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    [Required]
    public bool Status { get; set; } = true;

    /// <summary>
    /// 规则
    /// </summary>
    public string Summary { get; set; }

    /// <summary>
    /// 配置相关获得积分策略
    /// </summary>
    public List<CarsGame.CarsGameRuleLevel> ConfigRule { get; set; }

    /// <summary>
    /// 添加时间
    /// </summary>
    [Required]
    public DateTime AddTime { get; set; }=DateTime.Now;


}